<?php

namespace app\customer\curd;

use Illuminate\Pagination\LengthAwarePaginator;

interface PagingInterface
{
    //获取请求验证规则
    public function rules() :array;

    //验证的消息提示
    public function messages() :array;

    public function paging(array $params) :LengthAwarePaginator;

    //响应结果序列化
    public function toArray() :array;
}